#ifndef __LOCK__
#define ___LOCK__

#include <pthread.h>
class Lock
{
private:
    pthread_mutex_t *_mutex;
public:
    Lock(pthread_mutex_t *mutex);
    ~Lock();
    bool lock();
    bool unlock();
};

#endif